<template>
  <div>
    <h3>{{ msg }}</h3>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: '我是 孙子 组件'
    }
  },
  beforeCreate() {
    console.log('grandson:', 'beforeCreate')
  },
  created() {
    console.log('grandson:', 'created')
  },
  beforeMount() {
    console.log('grandson:', 'beforeMount')
  },
  mounted() {
    console.log('grandson:', 'mounted')
  },
  beforeUpdate() {
    console.log('grandson:', 'beforeUpdate')
  },
  updated() {
    console.log('grandson:', 'updated')
  }
}
</script>
